//
//  Map.h
//  FleaFinder
//
//  Created by Hieu Le on 4/13/13.
//  Copyright (c) 2013 Kiwiweb. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "AddressAnnotation.h"
//#import "MarkedInfo.h"
#import <CoreLocation/CoreLocation.h>
//#import "XmlParserMarkedListInCategory.h"
#import <dispatch/dispatch.h>
#import "AppDelegate.h"

@interface Map : UIViewController<MKMapViewDelegate, CLLocationManagerDelegate>
{
    AddressAnnotation *myLocation;
    
    //MarkedInfo* markedInfoViewController;
    
    int lastMarketId;
    
    NSMutableArray *annotations;
    
    CLLocationManager *locationManager;
    
    BOOL locationDetected;
    BOOL askPermissionAlready;
    BOOL isBackFromDetail;
    
    dispatch_queue_t queueAddAnnotation;
    
    AppDelegate *appDelegate;
    
    int longtitudeMeters;
    int latitudeMeters;
    
    UIActivityIndicatorView *activityIndicator;
}
@property (strong, nonatomic) IBOutlet CLLocationManager *locationManager;

@property (weak, nonatomic) IBOutlet MKMapView *theMap;

//-(void) showAnnotationForLat: (double) lat andLng:(double) lng;

-(void) removeAllAnnotation;

//-(void) showAnnotations;

-(void)locateOnMap;

@end
